//
//  ARTWatchSleepResultView.m
//  ChartsDemo
//
//  Created by yunda on 2022/5/25.
//

#import "ARTWatchSleepResultView.h"

@implementation ARTWatchSleepResultView

-  (instancetype)init{
    self = [super init];
    if (!self) {
        return nil;
    }
    // init code
    NSArray *arrayOfViews = [[NSBundle mainBundle] loadNibNamed:@"ARTWatchSleepResultView" owner:nil options:nil];
    // 加载nib
    self = [arrayOfViews objectAtIndex:0];
    self.backgroundColor = [UIColor whiteColor];
    self.frame = J_Frame(15, 0, J_SCREEN_WIDTH-15*2, 180);
    
    J_ViewRadius(self, 10);
    
    _titleLabel.text = FYLocalizedString(@"Diagnostic criteria：", @"");
    _subTitleLabel.text = FYLocalizedString(@"ODI", @"");
    
    _label1.text = FYLocalizedString(@"Disease Classification", @"");
    _label2.text = FYLocalizedString(@"sleep_watch_knowledge_ox4", @"");
    _label3.text = FYLocalizedString(@"sleep_watch_knowledge_ox5", @"");
    _label4.text = FYLocalizedString(@"sleep_watch_knowledge_ox6", @"");
    _label5.text = FYLocalizedString(@"sleep_watch_knowledge_ox7", @"");
    _xueyangLabel.text = FYLocalizedString(@"oxygen_spo2", @"");
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
